package com.woniuxy.charin.controller;


import com.woniuxy.charin.common.RedisConst;
import com.woniuxy.charin.enumeration.Assert;
import com.woniuxy.charin.enumeration.BusinessCode;
import com.woniuxy.charin.util.JwtUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/cart")
@Api(tags = "购物车接口")
@Slf4j
public class CartController {

    @Autowired
    private JwtUtil jwtUtil;  //要实现会话跟踪，从Token中获取用户id
    @Autowired
    private RedisTemplate redisTemplate;
    /**
     * 查询购物车
     */

    @GetMapping
    @ApiOperation("查询购物车")
    public ResponseEntity<Map<String,Object>> queryCart(){
        return null;
    }

}